<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #one{
            margin-bottom:20px;padding-right: 2px;
        }
        strong{
            background-color:red;margin-right: 10px;border-radius:5px;
        }
    </style>
</head>
<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <div id="one" v-for="n in 9" :key="n.id">
           <strong v-for="m in n" :key="m.id">
               {{m}}*{{n}}={{m*n}}
           </strong>        
        </div>
        <!-- v-bind绑定herf属性 v-bind：href 绑定属性标签：属性标签名 -->
        <a v-bind:href="url">点击跳转到百度</a>
        <!-- v-bind：绑定src属性 -->
        <img v-bind:src="imgUrl">
        <!-- 简单格式 -->
        <img :src="imgUrl">
    </div>    
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
    <script type="text/javascript">
        var vm = new Vue({
            el:'#app',
            data:{
                msg:'九九乘法表',
                url:'https://www.baidu.com/',
                imgUrl:'img/1.jpg'
            }
        });
    </script>
</body>
</html>